package vo;/*
 * @author 陈政
 * @date 2020-08-14 12:08
 */

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.DateFormat;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "homeparkingvo")
public class HomeParkingVo implements Serializable {

    //车位ID
    @Id
    private String parkingId;

    //物业ID
    @Field(type = FieldType.Text)
    private String propertyId;

    //车位号
    @Field(type = FieldType.Text)
    private String parkingNo;

    //抢租客用户ID
    @Field(type = FieldType.Text)
    private String rentId;

    //租借时长
    @Field(type = FieldType.Date, format=DateFormat.basic_date_time)
    private Date rentTime;

    //用户名
    @Field(type = FieldType.Text)
    private String userName;

    //手机号
    @Field(type = FieldType.Text)
    private String phone;

    //租借单价
    @Field(type = FieldType.Long)
    private Long rentMoney;

    //租借方式
    @Field(type = FieldType.Text)
    private String rentWay;

    //车位产权
    @Field(type = FieldType.Text)
    private String parkingPropertyRight;

    //车位创建时间
    @Field(type = FieldType.Date, format=DateFormat.basic_date_time)
    private Date createTime;

    //车位创建时间更改样式
    @Field(type = FieldType.Text)
    private String createTimeFormat;

    //车位更新时间
    @Field(type = FieldType.Date, format=DateFormat.basic_date_time)
    private Date updateTime;

    //车位逻辑删除字段
    @Field(type = FieldType.Integer)
    private Integer isDeleted;

    //物业名称
    @Field(type = FieldType.Text)
    private String propertyName;

    //区域名称
    @Field(type = FieldType.Text)
    private String areaName;

    //城市名称
    @Field(type = FieldType.Text)
    private String cityName;

    //车位图片
    @Field(type = FieldType.Text)
    private String parkingImg;
}
